import request from '@/utils/request'

// 收入
export function getCompanyDetails(params) {
  return request({
    url: '/statistical/companyDetails',
    method: 'POST',
    params
  })
}

// type  1=到账2=管理费收入
export function billCompany(params) {
  return request({
    url: '/companyDetails/billCompany',
    method: 'POST',
    params
  })
}

// type=1 房租  type=2 办公
export function rent(params) {
  return request({
    url: '/companyDetails/rent',
    method: 'POST',
    params
  })
}

// 工资社保
export function wage(params) {
  return request({
    url: '/companyDetails/wage',
    method: 'POST',
    params
  })
}

// 税金
export function tax(params) {
  return request({
    url: '/companyDetails/tax',
    method: 'POST',
    params
  })
}

// 管理费
export function managementDetails(params) {
  return request({
    url: '/companyDetails/managementDetails',
    method: 'POST',
    params
  })
}

// 支出详情页  多带个typeName
export function costInfo(params) {
  return request({
    url: '/companyDetails/costInfo',
    method: 'POST',
    params
  })
}

// 工资、社保 多带个typeName1 typeName2
export function wageCost(params) {
  return request({
    url: '/companyDetails/wageCost',
    method: 'POST',
    params
  })
}

// 工资、社保  房租、水电 多带个typeName1 typeName2
export function costTwoInfo(params) {
  return request({
    url: '/companyDetails/costTwoInfo',
    method: 'POST',
    params
  })
}

// 城建、教育等附加税+印花税+工会经费+残保金
export function costFourInfo(params) {
  return request({
    url: '/companyDetails/costFourInfo',
    method: 'POST',
    params
  })
}

//  type=1 支出福利费详情 type=2 回收福利费详情
export function welfare(params) {
  return request({
    url: '/companyDetails/welfare',
    method: 'POST',
    params
  })
}

